package homework.demo2;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class Demo {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext context =
                new AnnotationConfigApplicationContext("homework.demo2");

        Student bean = context.getBean(Student.class);
        DBUtil bean1 = context.getBean(DBUtil.class);
        System.out.println(bean);
        System.out.println(bean1);
    }
}
